function isOnline()
{
	// TODO method to define is online or offline.
	return true;
}

$(function() {
	
	/*$('.link').click(function(){

		var id = $(this).attr('id');
		

		if (isOnline()){
			return true;
		}else{
			window.location.href = $('.' + id + '_offline').attr('href');
		}		
		/*-------- / DELETE FOR ONLINE REAL TESTING ----------*/
		
		/*var request = $.ajax({
			url: "http://localhost:8079/OnOffLine/online.html",
			method: "GET",
		  	dataType: "html",
		  	async: false
		});

		request.done(function(msg) {
			window.location.href = $('.' + id + '_online').attr('href');
		});

		request.fail(function(jqXHR, textStatus) {
			window.location.href = $('.' + id + '_offline').attr('href');
		});*/
		
		//return false;
	//});	
});	